<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css" />
    <title>角色管理</title>
    <style>
        .current{
            background: #84B8F5;
            color:#ffffff;
        }
    </style>
</head>
<body data-id="28">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span> 权限管理  <span class="c-gray en">&gt;</span> 角色管理
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <div>
    <form class="ml-20 mr-20" id="role" method="post">
        <div class="clearfix">
              <div class="bg-1 bk-gray mb-20 clearfix rolegroup_box">
                <div class="roles-tab pd-20 col-sm-11 roleGroup">
                    <span class="btn btn-secondary radius size-S mr-10 f-l powerButton 476" onclick="role_group_add('添加新组','group_add.html')">新增组</span>
                </div>
                <a class="btn_open" href="javascript:;"><span>展开</span><i class="Hui-iconfont icon_up">&#xe6d5;</i><i class="Hui-iconfont icon_down">&#xe6d6;</i></a>
            </div>
            <input id="bottm" onclick="add_role('添加用户','role_add.html')" class="btn btn-secondary radius size-S f-r powerButton 479" value="&nbsp;添&nbsp;加&nbsp;角&nbsp;色&nbsp;">
        </div>
        <div class="bg-1 mt-10 pt-20 clearfix">
            <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="50">角色名称</th>
                    <th width="100">角色描述</th>
                    <th width="50">所属账号</th>
                    <th width="80">创建时间</th>
                    <th width="50">状态</th>
                    <th width="150">操作</th>
                </tr>
                </thead>
            </table>
        </div>
    </form></div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../ht-js/access/role.js?rev=@@hash"></script>

<script>
    web.role_list();
    function role_group_add(title,url) {
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }

    function ood_edit(title,url,row) {
        console.log(row)
        var anyue= row.split(",");
        //更改页面缓存
        var editData = {
            ROLE_ROLE_NAME:anyue[0],
            ROLE_ROLE_DESCRIPTION:anyue[1],
            ROLE_ROLE_ID:anyue[5],
            ROLE_CREAT_TIME:anyue[3],
            ROLE_STATUS:anyue[4],
            ROLE_ISEIDT:true
        };
        window.session_storage.setItem('ROLE_editData',JSON.stringify(editData));
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }

    //角色关闭
    function role_stop(title,url,row){
        console.log(row)
        sessionStorage.setItem("permission",row);
        layer_show(title, url, "550", "534");
    }

    //添加角色
    function add_role(title,url) {
        var editData = {
            ROLE_ISEIDT:false
        };
        window.session_storage.setItem('ROLE_editData',JSON.stringify(editData))
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }


</script>
</body>
</html>